package com.chanzany.observer.case1;

import lombok.extern.slf4j.Slf4j;

import java.time.LocalDateTime;

//具体观察者1，气象台
@Slf4j
public class ConcurrentCondition implements Observer {
    @Override
    public void update(float temperature, float pressure, float humidity) {
        log.info("中央气象局气象通知：");
        log.info(LocalDateTime.now().toString());
        log.info("温度:{}, 气压:{}, 湿度:{}",temperature,pressure,humidity);
    }
}
